﻿using System.Collections.Generic;
using System.Drawing;

namespace Shell
{
    public class NavGroup : INavGroup
    {
        private readonly HashSet<IViewFactory> m_ViewFactories = new HashSet<IViewFactory>();

        public NavGroup(string caption, Image groupIcon)
        {
            Caption = caption;
            GroupIcon = groupIcon;
        }

        public string Caption { get; set; }

        public Image GroupIcon { get; set; }

        public HashSet<IViewFactory> ViewFactories
        {
            get { return m_ViewFactories; }
        }

        public void AddViewFactory(IViewFactory view)
        {
            m_ViewFactories.Add(view);
        }
    }
}